<html>
<head><meta charset="utf-8"><title>succinct delegation · t-lang · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/index.html">t-lang</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/succinct.20delegation.html">succinct delegation</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="230629816"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/succinct%20delegation/near/230629816" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Gutoski <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/succinct.20delegation.html#230629816">(Mar 17 2021 at 02:43)</a>:</h4>
<p>Hi folks. This is a noob question cross-posted from #general on the advice of people in that channel.</p>
<p>What's the status of proposals to add a Golang-like struct embedding / delegation feature to Rust? By this I mean something akin to what's described in this Shepmaster stackoverflow answer <a href="https://stackoverflow.com/a/32552698">https://stackoverflow.com/a/32552698</a> . Discussion I find on the internet is all several years old and it seems the topic has become dormant. I often find myself wishing Rust has this feature. Quoting Shepmaster from the above link:</p>
<blockquote>
<p>However, I do hold out hope for a language feature that enables succinct _delegation_, reducing the annoyance of composition.</p>
</blockquote>
<p>Here's the RFC tracking issue from 2018 <a href="https://github.com/rust-lang/rfcs/pull/2393">https://github.com/rust-lang/rfcs/pull/2393</a></p>



<a name="230755452"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/succinct%20delegation/near/230755452" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/succinct.20delegation.html#230755452">(Mar 17 2021 at 19:51)</a>:</h4>
<p>Funny you should bring it up, as we just discussed this in our backlog bonanza meeting today</p>



<a name="230755478"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/succinct%20delegation/near/230755478" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/succinct.20delegation.html#230755478">(Mar 17 2021 at 19:51)</a>:</h4>
<p>The short version was that we wanted to consider this around the time of our next roadmap, as we consider new big ideas</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>